import { WeChatPayModule } from 'nest-wechatpay-node-v3';
import { Module } from '@nestjs/common';
import { HttpModule } from '@nestjs/axios';
import { WepayService } from '../wepay/wepay.service';
import { wepayConfig } from '@/utils/wechat.pay';
import { WepayController } from './wepay.controller';
@Module({
  imports: [WeChatPayModule.registerAsync(wepayConfig), HttpModule],
  controllers: [WepayController],
  providers: [WepayService],
  exports: [WepayService],
})
export class WepayModule {}
